package io.renren.modules.dangan.dao;

import io.renren.modules.dangan.entity.DaUserLocationEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.ResultType;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * ${comments}
 * 
 * @author Mark
 * @email sunlightcs@gmail.com
 * @date 2019-09-02 22:01:22
 */
@Mapper
public interface DaUserLocationDao extends BaseMapper<DaUserLocationEntity> {

    @ResultType(java.lang.String.class)
    @Select("select location from da_user_location where user_id=#{userId}")
    List<String> findByUserId(@Param("userId")long userId);
}
